<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
    <head>
        <title>你好</title>
        <meta charset="UTF-8"name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
        <link rel="stylesheet" href="/css/main.css" th:href="@{/css/main.css}" />
        <link rel="stylesheet" href="/css/my.css" th:href="@{/css/my.css}" />
        <link rel="stylesheet" href="/css/alert.css" th:href="@{/css/alert.css}"/>
    </head>
    <body>
    <div id="yu">
        <div th:fragment="logout" class="logout" sec:authorize="isAuthenticated()">
            <div>
                <form action="#" th:action="@{/logout}" method="post">
                    <button class="but" type="submit">登录</button>
                </form>
            </div>
        </div>
        <h1>欢迎，请点击下方按钮</h1>
        <ul>
            <li>进入 <a href="/admin/info" th:href="@{/admin/info}">管理员界面</a></li>
            <li>进入 <a href="/common/info" th:href="@{/common/info}">玩家界面</a></li>
        </ul>
    </div>
    </body>
</html>